package com.guigu.youxuan.mapper;

import com.guigu.youxuan.pojo.SupplierInfo;
import com.guigu.youxuan.pojo.SupplierProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.guigu.youxuan.pojo.dto.SupplierGoodsDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liweixin
 * @since 2024-05-15
 */
public interface SupplierProductMapper extends BaseMapper<SupplierProduct> {

    /**
     * 分页查询供应商商品信息 商品维护
     * @return
     */
    List<SupplierProduct> page(int supplierId);
    /**
     * 供应商商品拿id去查询数据
     * @param id
     * @return
     */
    SupplierProduct getByIdPage(int id);

    List<SupplierGoodsDto> querySupplier(@Param("supplierInfo") SupplierInfo supplierInfo, @Param("goodsId") Long goodsId);

}
